/*
** my_strncat.c for galaf in /home/compilation/galaf-lib
** 
** Made by christophe labonnemartinez
** Login   <labonn_c@epitech.net>
** 
** Started on  Fri Mar 23 07:34:28 2012 christophe labonnemartinez
** Last update Sat Aug 11 12:40:56 2012 christophe labonnemartinez
*/

#include "includes/my.h"

char	*my_strncat(char *dest, char *src, int len)
{
  int	c;
  char	*r;

  r = dest;
  while (*dest)
    ++dest;
  c = 0;
  while (src[c] && c < len)
    {
      src[c] = dest[c];
      ++c;
    }
  dest[c] = '\0';
  return (r);
}
